@extends('admin.public.admin')
@section('main')


<!-- 内容 -->
<div class="mws-panel grid_8">
    <div class="mws-panel-header">
         <span>修改轮播图</span>
    </div>

      <div class="mws-panel-body no-padding">

           <form class="mws-form" action="/admin/sys/slider/{{$data['id']}}" method="post" enctype='multipart/form-data'>
           {{csrf_field()}}
				<input type="hidden" value="PUT" name="_method">
                <div class="mws-form-inline">

                     <div class="mws-form-row">
                          <label class="mws-form-label">标题</label>
                          <div class="mws-form-item">
                               <input type="text" class="small" name="title" value="{{$data['title']}}">
                          </div>
                     </div>

                     <div class="mws-form-row">
                          <label class="mws-form-label">链接</label>
                          <div class="mws-form-item">
                               <input type="text" class="small" name="href" value="{{$data['href']}}">
                          </div>
                     </div>

                     <div class="mws-form-row">
                          <label class="mws-form-label">排序</label>
                          <div class="mws-form-item">
                               <input type="number" class="small" name="orders" value="{{$data['orders']}}">
                          </div>
                     </div>
					

                   
                   	 <div class="mws-form-row">
                      <label class="mws-form-label">广告图片</label>
                          <div class="mws-form-item">
                             <a href=""><img width="200px" style="height:80px" src="{{$data['img']}}" alt=""></a>
                            <input type="file" name="img">
                            
                            </div>
                      </div>
          
                  @if($data['status'])
                     <div class="mws-form-row">
                          <label class="mws-form-label">状态</label>
                          <div class="mws-form-item clearfix">
                               <ul class="mws-form-list inline">
                                    <li><input type="radio" name="status" value="0" > <label>启用</label></li>
                                    <li><input type="radio" name="status" value="1" checked > <label>禁用</label></li>                                       
                               </ul>
                          </div>
                     </div>
                  @else

                     <div class="mws-form-row">
                          <label class="mws-form-label">状态</label>
                          <div class="mws-form-item clearfix">
                               <ul class="mws-form-list inline">
                                    <li><input type="radio" name="status" value="0" checked > <label>启用</label></li>
                                    <li><input type="radio" name="status" value="1" > <label>禁用</label></li>                                       
                               </ul>
                          </div>
                     </div>
                  @endif
                </div>
                <div class="mws-button-row">
                     <input type="submit" value="修改" class="btn btn-danger">
                     <input type="button" class="btn btn-danger" onclick="history.go(-1)" value="返回">

                </div>
           </form>
      </div>         
  </div>



@endsection